Describes how a custom popup should behave. More...
Public Attributes | |
nkWinUi::Component * | _customComponent = nullptr |
std::function< void()> | _initializationCallback |
bool * | _popupShouldCloseTracker = nullptr |
bool | _closeOnOutsideClick = false |
Whether a click outside the popup should cause it to close itself, cancelling the interaction. | |
Describes how a custom popup should behave.
nkWinUi::Component* nkWinUi::PopupCustomDescriptor::_customComponent = nullptr |
The component that should be displayed in the popup. It is required to be set, and needs to have no parent component.
std::function<void ()> nkWinUi::PopupCustomDescriptor::_initializationCallback |
The callback to call once the window is fitted in the popup and loaded. Useful to set some focus for instance.
bool* nkWinUi::PopupCustomDescriptor::_popupShouldCloseTracker = nullptr |
The boolean driving when the popup should close. Required and initialized at false when the popup shows. It is the responsibility of the custom interface to set this boolean to true during interaction to make the popup disappear and end its synchronous processing.